package et.six.eta.View.Sideslip;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

import et.six.eta.MainActivity;
import et.six.eta.R;

public class set_up_butt extends AppCompatActivity {

    Button butt_fan;
    Button butt_ok;
    EditText et_set;
    String a="  ";

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.set_up);

        butt_fan=findViewById(R.id.butt_fan);
        butt_ok=findViewById(R.id.butt_ok);
        et_set=findViewById(R.id.et_set);

        butt_ok.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                et_set.setText(a);
                Toast.makeText(set_up_butt.this, "反馈成功，请返回", Toast.LENGTH_SHORT).show();

            }
        });
        butt_fan.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it = new Intent(set_up_butt.this, MainActivity.class);
                startActivity(it);
                finish();
            }
        });


    }
}
